﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 单元格的内容
/// </summary>
public abstract class CellContent{
    public enum CellContentType { N = 0,Text = 1,DropDown = 2}
    public CellContentType contentType;
    public delegate void DescriptionChanged(string des);
    public event DescriptionChanged onDescriptionChanged;
    public string description
    {
        get
        {
            return _description;
        }
        set
        {
            _description = value;
            if (onDescriptionChanged != null)
            {
                onDescriptionChanged(_description);
            }
        }
    }

    protected string _description;

    public abstract void OnSelected(bool b);
}
